package cn.cs.service;

import cn.cs.common.Page;
import cn.cs.pojo.CsPerson;
import cn.cs.pojo.CsRoleUser;

import java.util.List;
import java.util.Map;

public interface CsPersonService {

    public CsPerson getCsPersonById(String id) throws Exception;

    public CsPerson getPersonById(String id) throws Exception;

    public CsPerson findPersonByName(String username) throws Exception;

    public List<CsPerson> getCsPersonListByMap(Map<String, Object> param) throws Exception;

    public Integer getCsPersonCountByMap(Map<String, Object> param) throws Exception;

    public Integer addCsPerson(CsPerson csPerson) throws Exception;

    public Integer modifyCsPerson(CsPerson csPerson) throws Exception;

    public Integer deleteCsPersonById(String id) throws Exception;

    public Page<CsPerson> queryCsPersonPageByMap(Map<String, Object> param, Integer pageNo, Integer pageSize) throws Exception;

    public Integer insertPerSonRoleBatch(List<CsRoleUser> list, String id);
}
